<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我报名的</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="stylesheet" href="../layui/css/layui.css">
    <link rel="stylesheet" href="../css/reset.css">
    <link rel="stylesheet" href="../css/CSS.css">
    <script src="../js/jquery-3.3.1.js"></script>
    <script src="../layui/layui.all.js"></script>
    <script src="../layui/layui.js"></script>
    <script src="../js/JS.js"></script>
</head>
<style type="text/css">
    .my_release_nav li{
        float: left;
        width: 25%;
        text-align: center;
        padding: 3% 0;
        color: #9e9e9e;
    }
    form>div{
        display: none;
    }
    .my_release_nav .active{
        color: #000;
    }
</style>
<body style="background: #fff">
<header>
    <a href="javascript:history.back(-1)" class="back"><img src="../img/back.png" height="18px"></a>
    <div class="center title">我报名的</div>
</header>
<ul class="my_release_nav clearfix">
    <li class="active">推拿会所</li>
    <li>聚会约会</li>
    <li>出游旅行</li>
    <li>景点商家</li>    
</ul>
<form action="">
   
<div class="tuina">
    
</div>

<div class="yuehui">
    
</div>

<div class="tour">
    
</div>

<div class="guide">
    
</div>


   <!--  <ul class="outing_info clearfix">

        <li class=""><img src="../img/logo.png" alt=""></li>
        <li>
            <p>
                <span><img src="../img/description.png" alt=""></span>
                <span>有人星期天一起去西冲玩吗?</span>
            </p>
            <p>
                <span><img src="../img/site.png" alt=""></span>
                <span>坂田-西冲</span>
            </p>
            <p>
                <span><img src="../img/time.png" alt=""></span>
                <span>4月30日 下午5点</span>
            </p>
        </li>
        <li class="my_enroll clearfix" style="float: right;">
            <a class="fr">评价</a>
            <a class="fr">赴约成功</a>
        </li>
    </ul>
    <ul class="outing_info clearfix">
        <li class=""><img src="../img/logo.png" alt=""></li>
        <li>
            <p>
                <span><img src="../img/description.png" alt=""></span>
                <span>有人星期天一起去西冲玩吗?</span>
            </p>
            <p>
                <span><img src="../img/site.png" alt=""></span>
                <span>坂田-西冲</span>
            </p>
            <p>
                <span><img src="../img/time.png" alt=""></span>
                <span>4月30日 下午5点</span>
            </p>
        </li>
        <li class="my_enroll clearfix" style="float: right;">
            <span class="fr">待确定</span>
        </li>
    </ul> -->
</form>
</body>
</html>
<script>
var uCount = localStorage.getItem("uCount");
$('form>div').eq(0).show();
$('.my_release_nav li').click(function(){
    var index=$(this).index();
    $(this).addClass('active').siblings().removeClass('active');
    $('form>div').eq(index).show().siblings().hide();
});







$.ajax({
   url:"/meiyou/MyApply",
    type:"POST",
    data:"uCount="+uCount,
    success:function (data) {
        console.log(data);
        // 推拿
        $.each(data.tuina,function(i,val){
                $('.tuina').append("<ul class=\"outing_info clearfix\">\n" +
            "        <li class=\"\"><img src='"+val.u_img+"' alt=\"\"></li>\n" +
            "        <li>\n" +
            "            <p>\n" +
            "                <span><img src=\"../img/description.png\" alt=\"\"></span>\n" +
            "                <span>"+val.t_produce+"</span>\n" +
            "            </p>\n" +
            "            <p>\n" +
            "                <span><img src=\"../img/site.png\" alt=\"\"></span>\n" +
            "                <span>"+val.t_address+"</span>\n" +
            "            </p>\n" +
            "            <p>\n" +
            "                <span><img src=\"../img/time.png\" alt=\"\"></span>\n" +
            "                <span>"+val.t_time+"</span>\n" +
            "            </p>\n" +
            "        </li>\n" +
            "        <li class=\"my_enroll clearfix\" style=\"float: right;\">\n" +
            "            <span class=\"fr\">"+val.t_state+"</span>\n" +
            "             <a class=\"fr\" href='add_appraise_tuina.html?id="+val.t_id+"'>  评价</a>"+
            "        </li>\n" +
            "    </ul>");
        });
        // 约会
        $.each(data.yuehui,function(i,val){
                $('.yuehui').append("<ul class=\"outing_info clearfix\">\n" +
            "        <li class=\"\"><img src='"+val.u_img+"' alt=\"\"></li>\n" +
            "        <li>\n" +
            "            <p>\n" +
            "                <span><img src=\"../img/description.png\" alt=\"\"></span>\n" +
            "                <span>"+val.y_context+"</span>\n" +
            "            </p>\n" +
            "            <p>\n" +
            "                <span><img src=\"../img/site.png\" alt=\"\"></span>\n" +
            "                <span>"+val.y_address+"</span>\n" +
            "            </p>\n" +
            "            <p>\n" +
            "                <span><img src=\"../img/time.png\" alt=\"\"></span>\n" +
            "                <span>"+val.y_time+"</span>\n" +
            "            </p>\n" +
            "        </li>\n" +
            "        <li class=\"my_enroll clearfix\" style=\"float: right;\">\n" +
            "            <a class=\"fr\">"+val.y_state+"</span>\n" +
            "            <a class=\"fr\" href='add_appraise_yh.html?id="+val.y_id+"'>评价</span>\n" +
            "        </li>\n" +
            "    </ul>");
        });
        // 导游
        $.each(data.guide,function(i,val){
                $('.guide').append("<ul class=\"outing_info clearfix\">\n" +
            "        <li class=\"\"><img src='"+val.u_img+"' alt=\"\"></li>\n" +
            "        <li>\n" +
            "            <p>\n" +
            "                <span><img src=\"../img/description.png\" alt=\"\"></span>\n" +
            "                <span>"+val.g_duce+"</span>\n" +
            "            </p>\n" +
            "            <p>\n" +
            "                <span><img src=\"../img/site.png\" alt=\"\"></span>\n" +
            "                <span>"+val.g_area+"</span>\n" +
            "            </p>\n" +
            "            <p>\n" +
            "                <span><img src=\"../img/time.png\" alt=\"\"></span>\n" +
            "                <span>"+val.g_shuoming+"</span>\n" +
            "            </p>\n" +
            "        </li>\n" +
            "        <li class=\"my_enroll clearfix\" style=\"float: right;\">\n" +
            "            <a class=\"fr\">"+val.g_state+"</span>\n" + 
             "             <a class=\"fr\" href='add_appraise_daoyou.html?id="+val.g_id+"'>  评价</a>"+         
            "        </li>\n" +
            "    </ul>");
        });
        // 出游
        $.each(data.tour,function(i,val){
                $('.tour').append("<ul class=\"outing_info clearfix\">\n" +
            "        <li class=\"\"><img src='"+val.u_img+"' alt=\"\"></li>\n" +
            "        <li>\n" +
            "            <p>\n" +
            "                <span><img src=\"../img/description.png\" alt=\"\"></span>\n" +
            "                <span>"+val.t_count+"</span>\n" +
            "            </p>\n" +
            "            <p>\n" +
            "                <span><img src=\"../img/site.png\" alt=\"\"></span>\n" +
            "                <span>"+val.t_faddress+"-"+val.t_taddress+"</span>\n" +
            "            </p>\n" +
            "            <p>\n" +
            "                <span><img src=\"../img/time.png\" alt=\"\"></span>\n" +
            "                <span>"+val.t_sdate+"</span>\n" +
            "            </p>\n" +
            "        </li>\n" +
            "        <li class=\"my_enroll clearfix\" style=\"float: right;\">\n" +
            "            <a class=\"fr\">"+val.t_state+"</span>\n" + 
             "             <a class=\"fr\" href='add_appraise_cy.html?id="+val.t_id+"'>  评价</a>"+         
            "        </li>\n" +
            "    </ul>");
        });
    }
});
</script>
